﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCLD.Models.ArticleType>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Article Submission Types
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Article Submission Types</h2>
    <p>Here you can choose what types of submissions you allow, whether you charge for them and also notes to the submitter - <strong>NOTE:</strong> the currency is based on the application culture, if you want the payment to
    be in your currency then change the culture in the web.config</p>

    <table class="admintable">
        <tr>
            <th>
               Submission Type Name
            </th>
            <th>
                Cost
            </th>
            <th>
                Sort Order
            </th>
            <th></th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>

            <td>
                <%= Html.ActionLink(item.ArticleTypeName, "EditArticleType", new { id = item.ArticleTypeID })%>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.Cost)) %>
            </td>
            <td>
                <%= Html.Encode(item.SortOrder) %>
            </td>
            <td>
                <%= Html.ActionLink("Delete", "DeleteArticleType", new { id=item.ArticleTypeID })%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "CreateArticleType") %>
    </p>

</asp:Content>

